package cn.zhangxin.pethome.system.pet.domain;

import java.math.BigDecimal;
import java.util.Date;
import cn.zhangxin.pethome.base.domain.BaseDomain;
import cn.zhangxin.pethome.system.shop.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author zx
 * @since 2023-02-06
 */
@Data
public class Pet extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private Double saleprice;//售价
    private Double costprice;//成本价
    private String resources;
    /**
     * 状态：0下架 1上架
     */
    private Long state;
    /**
     * 类型id
     */
    private Long typeId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    private Date createtime;
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;
    private Integer auditnum;
    private String note;

    //宠物详细信息
    private PetDetail detail;

    //品种
    private PetType type;
    //店铺
    private Shop shop;


}
